package com.huli.service.impl;

import com.huli.dao.MemberMapper;
import com.huli.domain.UserVip;
import com.huli.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MemberServiceImpl implements MemberService {
    @Autowired
    MemberMapper memberMapper;

    @Override
    public UserVip selectUserVipById(int userVipId) {
        return memberMapper.selectById(userVipId);
    }

    @Override
    public List<UserVip> selectAllUserVip() {
        return memberMapper.selectList(null);
    }
}
